<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  
 </head>
 <body>
  <script>
    var mycars = ["Saab","Volvo","BMW"];
    var car = mycars.pop();         		//从尾部弹出一个元素
    document.write(mycars);
    document.write('<br/>');
    document.write(car);

  </script>
 </body>
</html>
